<? /* license

BilugCMS (http://www.bilug.it) - Content Management System for dynamic web sites
Copyright (C) 2005-2008  Federico Villa and Alessio Loro Piana

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

For reference, contact bilugcms@vilnet.it


license */ ?>
<!-- Index evento-->
<form name="viseventi" method="post" action="index.php?pag=mese_eventoapp.php" enctype="multipart/form-data">
<input type="hidden" name="titolo" value="<?=$titolo?>" />
<h3><?=$titolo?></h3><p>
		<select name="mese">
		<?
			$nomemese = Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno", "Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");			
			for ($ore=1;$ore<13;$ore++){				 
				echo "<option value=\"".($ore<10?"0":"")."$ore\"".
				 (date("m") == $ore ? " selected=\"selected\"":"").
				">".$nomemese[$ore-1]."&nbsp;&nbsp;</option>";
			}
		?>
		</select>		
		<select name="anno">
		<?			
			require_once("../utility/connessione.php");	
			$stringaanno="SELECT distinct DATE_FORMAT(dataora,'%Y') FROM eventi order by dataora DESC";  	
  			$risannodb=mysql_query($stringaanno);
  			if (mysql_num_rows($risannodb)>0)
		  	{
		  		while($annodb=mysql_fetch_row($risannodb))
		  		{
		  			echo "<option value=\"".$annodb[0]."\"".
		 			(date("Y") == $annodb ? " selected=\"selected\"":"").
					">".$annodb[0]."&nbsp;&nbsp;</option>";  								
		  		}
		  	}
		?>
		</select></p>
		<p><input type="submit" value="Vedi" tabindex="7" id="bottomlato"/></p>
</form><br/>
